<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>鼠标移入旋转动画</title>
    <link rel="stylesheet" href="./css/reset.css" />
    <style>
      .landscape {
        width: 1260px;
        /* height: 300px; */
        /* border:2px solid red; */
        margin: 100px auto 0px;
      }

      .landscape .item {
        width: 400px;
        height: 300px;
        /* background-color: skyblue; */
        float: left;
        margin: 0px 10px;
        position: relative;
        overflow: hidden;
      }

      .clearfix::after {
        content: "";
        display: block;
        clear: both;
      }

      .item:hover img {
        filter: blur(5px);
      }

      /* .item .mask {
        width: 500px;
        height: 0px;
        background-color: rgba(0, 0, 0, 0);
        position: absolute;
        top: 0px;
        left: 0px;
        transform-origin: left center;
        transform: rotate(37deg);
        transition: all ease 0.5s;
      } */

      /* .item:hover .mask {
        top: -150px;
        height: 300px;
        background-color: rgba(0, 0, 0, 0.5);
      } */

      .item::after {
        content: "";
        width: 500px;
        height: 0px;
        background-color: rgba(0, 0, 0, 0);
        position: absolute;
        top: 0px;
        left: 0px;
        transform-origin: left center;
        transform: rotate(37deg);
        transition: all ease 0.5s;
        /* opacity: 0; */
      }

      .item:hover::after {
        top: -150px;
        height: 300px;
        background-color: rgba(0, 0, 0, 0.5);
        /* opacity: 1; */
      }

      .item .item-txt {
        /* border:1px solid red; */
        position: absolute;
        top: 80px;
        left: 60px;
        right: 100px;
        z-index: 3;
        opacity: 0;
        transform: rotate(30deg);
        transition: all ease 0.5s;
      }

      .item .item-txt h3 {
        font-size: 20px;
        color: #fff;
        font-weight: 400;
        padding-bottom: 15px;
      }

      .item .item-txt p {
        font-size: 14px;
        color: #ddd;
        line-height: 25px;
      }

      .item:hover .item-txt {
        opacity: 1;
        transform: rotate(0deg);
      }
    </style>
  </head>
  <body>
    <div class="landscape clearfix">
      <div class="item">
        <img src="images/rotate1.webp" alt="image" width="400" height="300" />
        <!-- <div class="mask"></div> -->
        <div class="item-txt">
          <h3>风景如画</h3>
          <p>风景如画是“风景”和“如画”的连用，意思是美丽的景色如画出来的一样，比喻景色像图画一样呈现在眼前。</p>
        </div>
      </div>

      <div class="item">
        <img src="images/rotate2.webp" alt="image" width="400" height="300" />
        <div class="item-txt">
          <h3>风景如画</h3>
          <p>风景如画是“风景”和“如画”的连用，意思是美丽的景色如画出来的一样，比喻景色像图画一样呈现在眼前。</p>
        </div>
      </div>

      <div class="item">
        <img src="images/rotate3.webp" alt="image" width="400" height="300" />
        <div class="item-txt">
          <h3>风景如画</h3>
          <p>风景如画是“风景”和“如画”的连用，意思是美丽的景色如画出来的一样，比喻景色像图画一样呈现在眼前。</p>
        </div>
      </div>
    </div>
  </body>
</html>
